﻿<UserControl x:Class="MyAdressBookWPF.View.LoginView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="277" Background="White" MinWidth="640" MinHeight="480" FontFamily="Tahoma">
    <UserControl.InputBindings>
        <KeyBinding Key="enter" Command="{Binding LoginCommand}" CommandParameter="{Binding ElementName=pwdBox}" />
    </UserControl.InputBindings>
    <Grid>
    	<Label Content="Login" HorizontalAlignment="Left" VerticalAlignment="Top" 
               RenderTransformOrigin="3.974,4.276" Margin="186,207,0,0" 
               Width="107.993" FontFamily="Tahoma" FontSize="13.333" 
               Foreground="#FF7C7C7C" d:LayoutOverrides="VerticalAlignment"/>
    	<Label Content="Password" HorizontalAlignment="Left" 
               RenderTransformOrigin="3.974,4.276" Margin="187,0,0,207.423" 
               Width="107.993" Foreground="#FF7C7C7C" FontFamily="Tahoma" VerticalAlignment="Bottom"/>
        <TextBox TextWrapping="Wrap" Text="{Binding Login, Mode=OneWayToSource}" 
                 Margin="313.001,207,184.446,0" Height="26.093" VerticalAlignment="Top" 
                 Foreground="#FF7C7C7C" />
        <PasswordBox Name="pwdBox" Margin="313.002,0,184.446,207.423" Height="24.483" 
                     VerticalAlignment="Bottom" Foreground="#FF7C7C7C"/>
        <Button Content="Login" Command="{Binding LoginCommand}" 
                CommandParameter="{Binding ElementName=pwdBox}" 
                HorizontalAlignment="Right" VerticalAlignment="Bottom" 
                Width="75" Margin="0,0,184.446,160.04" FontSize="13.333"/>
        <TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="0,0,184.446,194.129" Width="69.6" FontSize="10.667">
        	<Hyperlink Command="{Binding RegisterCommand}" Foreground="#FF7C7C7C">Register here</Hyperlink>
		</TextBlock>
        <Label Content="Sign To Your Adress Book" VerticalAlignment="Top" Margin="313.001,164,175.447,0" Foreground="#FF7C7C7C"/>
    </Grid>
</UserControl>
